package com.example.websockettest.webSocket.MyTool;

import lombok.Data;

import java.util.ArrayList;
/**
 * 请求chatgpt3的json数据格式
 * */
@Data
public class BodyData {
    private String model;
    private double temperature;
    private int max_tokens;
    private int n;
    private ArrayList<MyRole> messages;

    public BodyData(String model, double temperature, int max_tokens, int n, ArrayList<MyRole> messages) {
        this.model = model;
        this.temperature = temperature;
        this.max_tokens = max_tokens;
        this.n = n;
        this.messages = messages;
    }
}
